#include "TestServer.h"
#include "TestEngine.h"

CTestServer::~CTestServer()
    {
    delete iEngine;
    }

void CTestServer::ConstructL()
    {
    CServerBase::ConstructL();
    
    iEngine = CTestEngine::NewL();
    }

void CTestSession::PopulateRequestArrayL(scatu::RServerRequestArray & aArray)
    {
    CTestEngine & engine = Server().Engine();
    
    aArray.RegisterRequestL(iApi.iSum, engine, &CTestEngine::Sum);
    aArray.RegisterRequestL(iApi.iConcatenate, engine, &CTestEngine::ConcatenateL);
    aArray.RegisterRequestL(iApi.iConcatenateAsync, engine, &CTestEngine::ConcatenateAsyncL);
    }
